package oa.hleast.xswl.pojo.domain.activity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import oa.hleast.common.base.BaseEntity;

import java.util.Date;

/**
 * cms_user_sign_in
 *
 * @author 302
 */
@ApiModel(value = "CmsUserSignIn活动签到表")
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@TableName("cms_user_sign_in")
public class CmsUserSignIn extends BaseEntity {

    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 用户ID
     */
    @ApiModelProperty(value = "用户ID")
    private Long userId;

    /**
     * 场景ID/活动ID
     */
    @ApiModelProperty(value = "场景ID/活动ID")
    private Long scenesId;

    /**
     * 活动日历ID/场次ID
     */
    @ApiModelProperty(value = "活动日历ID/场次ID")
    private Long calendarId;

    /**
     * 签到时间
     */
    @ApiModelProperty(value = "签到时间")
    private Date signInDate;

    /**
     * 签到类型 0：个人签到 1：老师验签
     */
    @ApiModelProperty(value = "签到类型 0：个人签到 1：老师验签")
    private Integer type;

    /**
     * 用户类型 0:学生 1:老师
     */
    @ApiModelProperty(value = "用户类型 0:学生 1:老师")
    private Integer userType;

    /**
     * 管理员用户ID
     */
    private Long managerUserId;

    /**
     * 体温
     */
    private String bodyTemperature;

    /**
     * 删除标识  (0未删除 1已删除)
     */
    @ApiModelProperty(value = "删除标识  (0未删除 1已删除)")
    @TableLogic(value = "0", delval = "1")
    private Boolean deleted;

}